package com.kunag.builderFactory.demo2;


/**
 * @Title:
 * @Description:
 * 客户类
 * @Author: zx
 * @Date: create in 9:42 2020/8/4
 * @Version: 1.0
 */
public class BuilderFactoryClient {
    public static void main(String[] args) {
        //没有指挥者，由服务员自己来创建套餐
        Worker worker = new Worker();
        Product build = worker.getProduct();
        System.out.println("顾客没有选择，推荐默认套餐：");
        System.out.println(build);
        System.out.println("====================分割线==================");
        System.out.println("顾客选择自定义套餐，推荐默认套餐：");
        //顾客主食点了鸡肉卷
        build.setBuildA("鸡肉卷");
        //顾客饮料点了芬达
        build.setBuildB("芬达");
        System.out.println(build);

    }
}
